package com.sinosoft.jwjw.utils;

import net.sf.json.JSONObject;

/**
 * Created by LB on 2018/7/1.
 */
public class ResultDetail {

    private int code;

    private String msg;

    private String innermsg;

    private JSONObject result;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getInnermsg() {
        return innermsg;
    }

    public void setInnermsg(String innermsg) {
        this.innermsg = innermsg;
    }

    public JSONObject getResult() {
        return result;
    }

    public void setResult(JSONObject result) {
        this.result = result;
    }
    
    
    
    
    @Override
    public String toString() {
    	
    	if(result == null)
    		result = new JSONObject();
    	
    	JSONObject jo = new JSONObject();
    	jo.put("code", code);
    	jo.put("msg", msg);
    	jo.put("innermsg", innermsg);
    	jo.put("result", result);
    	
        return jo.toString();
    }
}
